<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{#    <p>{{ value }}</p>#}
{#    <p>{{ page }}</p>#}

{#  使用url标签实现反向解析  #}
    <p><a href="{% url 'index:cw' 12 %}">点击去到django学习界面</a></p>
    {% for i, k in page.items %}
{#        <a href="{% url 'index:cw' i %}">{{ i }}</a>#}
        <a href="{% url 'index:cw' k %}">{{ i }}</a>
    {% endfor %}

{#  实现自定义标签  #}
    <p>
        {% load index_tags %}
        {% test_as_tag "黑马程序员" as hmcxy %}
        <p>{{ hmcxy }}</p>
        <p>{{ hmcxy }}</p>
        <p>{{ hmcxy }}</p>
        <p>{{ hmcxy }}</p>
        {% addstr_tag '欢乐马' %}
    </p>

</body>
</html>